import React, { Component } from 'react';
import  {withLog  } from "../withFunc";
import {withRouter  } from "react-router-dom";

// es7的装饰器语法!!! 
@withLog
@withRouter
class Btn extends Component {
  render() {
    console.log(this.props);
    return (
      <button>按钮</button>
    );
  }
}



@withColorLog
class Person{}

function withColorLog(target) {
  target.prototype.colorLog=console.log
}

let p1=new Person();
console.log(p1);

export default Btn;
// export default withLog(withRouter(Btn));